import request from '@/utils/request'

export const getCourseList = (page, limit, searchObj) => {
  return request({
    url: `/eduservice/coursefront/getFrontCourseList/${page}/${limit}`,
    method: 'POST',
    data: searchObj
  })
}

export const getAllSubject = () => {
  return request({
    url: '/eduservice/subject/getAllSubject',
    method: 'get'
  })
}

export const getCourseInfoById = courseId => {
  return request({
    url: `/eduservice/coursefront/getFrontCourseInfo/${courseId}`,
    method: 'GET'
  })
}
